#ifndef ALIPAYPAGEPRESENTER_HPP
#define ALIPAYPAGEPRESENTER_HPP

#include <gui/model/ModelListener.hpp>
#include <mvp/Presenter.hpp>

using namespace touchgfx;

class AlipayPageView;

class AlipayPagePresenter : public touchgfx::Presenter, public ModelListener
{
public:
    AlipayPagePresenter(AlipayPageView& v);

    /**
     * The activate function is called automatically when this screen is "switched in"
     * (ie. made active). Initialization logic can be placed here.
     */
    virtual void activate();

    /**
     * The deactivate function is called automatically when this screen is "switched out"
     * (ie. made inactive). Teardown functionality can be placed here.
     */
    virtual void deactivate();

    virtual ~AlipayPagePresenter() {};
		//AlipayPagePresenter状态
		void AlipayPagePresenterState(bool enable);
		//页面跳转	
		virtual void AlipayPageChange(uint8_t newFiveKeyFunc);
private:
    AlipayPagePresenter();

    AlipayPageView& view;
};

#endif // ALIPAYPAGEPRESENTER_HPP
